﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;

namespace TMScore_Subsets // form that present the graph
{
    public partial class PresentingTMscore : Form
    {
        private User u;
        public PresentingTMscore(User u)
        {
            
            InitializeComponent();
            this.u = u;
            chart1.Series["Series1"].ChartType = SeriesChartType.Line;  // graph type
            foreach (KeyValuePair<DateTime, double> pair in u.subsetTMscore)
            {
                chart1.Series["Series1"].Points.AddXY(pair.Key, pair.Value); // printing all the points

            
            }
     
        }

        
    
    }
}
    
